﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RealTimeCharts.LineChart
{
    public abstract class ShapeBase
    {

        public Graphics gs = null;
        public Pen pen = null;

        public ShapeBase() { }

        public ShapeBase(Graphics g,Pen p)
        {
            gs = g;
            pen = p;
        }

        /// <summary>
        /// 设置GDI+的图画
        /// </summary>
        /// <param name="g"></param>
        public void SetGraphics(Graphics g)
        {
            this.gs = g;
        }

        /// <summary>
        /// 获得GDI+的图画
        /// </summary>
        /// <returns></returns>
        public Graphics GetGraphics()
        {
            return gs;
        }

        /// <summary>
        /// 显示
        /// </summary>
        public abstract void Show();
    }
}
